using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace SIGCBI.Entities
{
    public partial class DETALLE_PARTIDA : BaseEntity
    {
        public int Id { get; set; }

        [Display(Name = "IdPartida")]
        [Required(ErrorMessage = "La Partida es requerida")]
        [Range(1, 10000000, ErrorMessage = "Debe elegir una Partida")]
        public int IdPartida { get; set; }

        [Display(Name = "IdFuenteFinanciera")]
        [Required(ErrorMessage = "La Fuente Financiera es requerida")]
        [Range(1, 10000000, ErrorMessage = "Debe elegir una Fuente Financiera")]
        public int IdFuenteFinanciera { get; set; }

        [Display(Name = "MontoAsignado")]
        [Required(ErrorMessage = "El Monto Asignado es requerido")]
        [Range(1, 10000000, ErrorMessage = "El monto Asignado debe ser mayor a 0")]
        public decimal MontoAsignado { get; set; }

        //[Display(Name = "MontoGastado")]
        //public decimal MontoGastado { get; set; }

        //[Display(Name = "Saldo")]
        //public decimal Saldo { get; set; }

        public virtual FUENTE_FINANCIERA FUENTE_FINANCIERA { get; set; }
        public virtual PARTIDA PARTIDA { get; set; }
    }
}
